<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class Row</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> Row</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A Row represents a data entry (a row) of the <a href="../model/DataTable.html">DataTable</a>.</p>
<p class="description"><p>Each row contains one or more <a href="../model/Cell.html">Cell</a>s that stores the actual data of  this row. The cells of each row have to match the <a href="../model/Column.html">Column</a> definition.  <a href="../model/Column.html">Column</a> and <a href="../model/Cell.html">Cell</a> are connected by the order they  are added to the <a href="../model/DataTable.html">DataTable</a> and <a href="../model/Row.html">Row</a>, respectively.  That is, the <a href="../model/Cell.html">Cell</a> added first belongs to the <a href="../model/Column.html">Column</a> definition  that has been added first, the second-added <a href="../model/Cell.html">Cell</a> to the second-added  <a href="../model/Column.html">Column</a>, and so on. Therefore, no more cells per row can be added then  columns have been defined.</p></p>
		<p class="notes">
			Located in <a class="field" href="_googlecharttools---model---Row.class.php.html">/googlecharttools/model/Row.class.php</a> (line <span class="field">44</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../model/Row.html">Row</a></span>
										<a href="#addCell" title="details" class="method-name">addCell</a>
											(<span class="var-type"><a href="../model/Cell.html">Cell</a></span>&nbsp;<span class="var-name">$cell</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Cell[]</span>
										<a href="#getCells" title="details" class="method-name">getCells</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">int</span>
										<a href="#getCellsCount" title="details" class="method-name">getCellsCount</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#toJson" title="details" class="method-name">toJson</a>
											(<span class="var-type">Column[]</span>&nbsp;<span class="var-name">$cols</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodaddCell" id="addCell"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">addCell</span> (line <span class="line-number">57</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds a new cell to this row.</p>
	<ul class="tags">
				<li><span class="field">return:</span> This object.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../model/Row.html">Row</a></span>
		<span class="method-name">
			addCell
		</span>
					(<span class="var-type"><a href="../model/Cell.html">Cell</a></span>&nbsp;<span class="var-name">$cell</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../model/Cell.html">Cell</a></span>
				<span class="var-name">$cell</span><span class="var-description">: A cell.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCells" id="getCells"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getCells</span> (line <span class="line-number">68</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets all cells that have been added to this row.</p>
	<ul class="tags">
				<li><span class="field">return:</span> All cells that have been added to this row so far.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Cell[]</span>
		<span class="method-name">
			getCells
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetCellsCount" id="getCellsCount"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getCellsCount</span> (line <span class="line-number">78</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets the number of cells that have been added to this row.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Number of cells.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getCellsCount
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtoJson" id="toJson"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">toJson</span> (line <span class="line-number">95</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts this object into a JSON-object.</p>
<p class="description"><p>This representation follows the JavaScript literal format specified  at <a href="https://google-developers.appspot.com/chart/interactive/docs/reference#dataparam">https://google-developers.appspot.com/chart/interactive/docs/reference#dataparam</a>  as element of the &quot;row&quot; JSON-array.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> The JSON representation of this Row.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			toJson
		</span>
					(<span class="var-type">Column[]</span>&nbsp;<span class="var-name">$cols</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Column[]</span>
				<span class="var-name">$cols</span><span class="var-description">: The <a href="../model/DataTable.html">DataTable</a>'s columns (used to convert the               cells' value into the proper output format).</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Mon, 01 Oct 2012 16:45:06 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>